package com.kadron.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.kadron.base.KBase;

@Entity
@Table(name = "k_size", uniqueConstraints = { @UniqueConstraint(columnNames = { "code" }) })
public class Size extends KBase implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7371370719199660164L;
	
	protected String code = "";

	@Column(name = "code")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Size other = (Size) obj;
		if (id != other.id)
			return false;
		return true;
	}

}
